package cc.openhome;

public class ClassLoaderHierarchy {
    public static void main(String[] args) {
        Some some = new Some();      // 生成Some实例
        Class clz = some.getClass(); // 取得Some.class的Class实例
        ClassLoader loader = clz.getClassLoader();    // 取得ClassLoader
        System.out.println(loader);
        System.out.println(loader.getParent());       // 取得父ClassLoader
        System.out.println(
                loader.getParent().getParent()); // 再取得父ClassLoader
    }
}
